<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE hibernate-mapping PUBLIC
    "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
    "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping>
    <class name="cn.firstsoft.modules.portlet.domain.PortletRss" table="portlet_rss">
      <id name="id" type="integer">
            <column name="id" />
            <generator class="native" >
				         <param name="sequence">PORTLET_RSS_ID_SEQ</param>
            </generator>
        </id>
        <property name="title" type="string">
               <column name="title" length="2000" />
        </property>
        <property name="link" type="string">
               <column name="link" length="2000" />
        </property>
        <property name="createDate" type="timestamp">
               <column name="createDate" length="23" />
        </property>
        <property name="descs" type="string">
               <column name="descs" length="8000" />
        </property>
      	<many-to-one name="portletRssTemp" cascade="save-update"
			class="cn.firstsoft.modules.portlet.domain.PortletRssTemp" fetch="select">
			<column name="portlet_rss_temp_id" />
		</many-to-one> 

       
    </class>
</hibernate-mapping>
